import React from 'react';
import { NavLink } from 'react-router-dom';

function BaseNav() {
  return (
    <div>
      <nav>
        <ul>
          <li>
            <NavLink to='/routerLearn/one'>One</NavLink>
          </li>
          <li>
            <NavLink to='/routerLearn/two?id=1313'>Two</NavLink>
          </li>
          <li>
            <NavLink to='/routerLearn/three'>动态参数</NavLink>
          </li>
          <li>
            <NavLink to='/routerLearn/dynamic/ddd'>dynamic</NavLink>
          </li>
        </ul>
      </nav>
    </div>
  );
}

export default BaseNav;
